package org.zhadoop.stream.cql.semanticanalyzer;

import org.zhadoop.stream.cql.exception.SemanticAnalyzerException;
import org.zhadoop.stream.cql.semanticanalyzer.analyzecontext.AnalyzeContext;
import org.zhadoop.stream.cql.semanticanalyzer.analyzecontext.SubmitApplicationAnalyzeContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.context.ParseContext;

/**
 * submit application 命令解析
 * @author zwd
 *
 */
public class SubmitApplicationAnalyzer extends BaseAnalyzer{
	
	private SubmitApplicationAnalyzeContext submitContext;

	public SubmitApplicationAnalyzer(ParseContext parseContext) throws SemanticAnalyzerException {
		super(parseContext);
	}

	@Override
	public AnalyzeContext analyze() throws SemanticAnalyzerException {
		return submitContext;
	}
	
	@Override
	protected void createAnalyzeContext() {
		submitContext = new SubmitApplicationAnalyzeContext();
	}
	
	@Override
	protected AnalyzeContext getAnalyzeContext() {
		return submitContext;
	}

	

}
